package com.ykt.model;


import java.util.List;

/**
 * 广告表
 */
public class Ad extends BaseModel<Ad>{
    private static final long serialVersionUID = 1L;

    public static final String market_id ="market_id";
    public static final String ad_pic ="ad_pic";
    public static final String status = "status";
    public static final String type = "type";
    public static final String ad_url = "ad_url";

    public static Ad dao = new Ad();


    public List<Ad> findByMarketId(int marketId){
        String sql = "select * from ad where market_id=?";
        return this.find(sql, marketId);
    }

}
